package com.yiya.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yiya.bean.PriceRel;
import com.yiya.model.PriceRelCplex;
import com.yiya.model.PriceRelCplexModel;
import com.yiya.model.PriceRelExample;

public interface PriceRelMapper {
    int countByExample(PriceRelExample example);

    int deleteByExample(PriceRelExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PriceRel record);

    int insertSelective(PriceRel record);

    List<PriceRel> selectByExample(PriceRelExample example);

    PriceRel selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") PriceRel record, @Param("example") PriceRelExample example);

    int updateByExample(@Param("record") PriceRel record, @Param("example") PriceRelExample example);

    int updateByPrimaryKeySelective(PriceRel record);

    int updateByPrimaryKey(PriceRel record);
    
    List<PriceRelCplex> selectByModel(PriceRelCplexModel record);

	int countByModel(PriceRelCplexModel record);
	
	PriceRelCplex selectById(Integer id);
	
	List<PriceRel> getByMhtAndProd(PriceRel record);
}